﻿using System;
using System.Globalization;
using System.Windows.Data;
using LFSRecord2.Model.Media;
using LFSRecord2.Structures;

namespace LFSRecord2.View.Converters
{
    public class MediaIconConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            switch ((MediaIconTypes)value)
            {
                case MediaIconTypes.ReplayData:
                    return BitmapCache.Mpr;
                case MediaIconTypes.Audio:
                    return BitmapCache.Audio;
                case MediaIconTypes.Bitmap:
                    break;
                case MediaIconTypes.Video:
                    break;
            }
            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return !((bool)value);
        }
    }
}
